package com.bosssoft.cloud.wechat.infrastructure.util;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * rest helper类
 * <p>
 * 已废弃，现统一用OkHttp2
 *
 * @author wcy create on 2021/5/11 18:21 下午
 */
public class EHttpUtil {


    /**
     * 解决跨域问题（旧）
     */
    @Deprecated
    public static void setOrigin(HttpServletRequest request, HttpServletResponse response) {
        response.setHeader("Access-Control-Allow-Origin", request.getHeader("Origin"));
        response.setHeader("Access-Control-Allow-Credentials", "true");
    }


}
